﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace PaperMaster.Chess.PlayerCore
{
    public class PlayerCoreViewController : MonoBehaviour
    {
        public PlayerCoreController controller;
        public static PlayerCoreController GetController()
        {
            GameObject obj = GameObject.Find("PlayerCore");
            if (obj != null)
            {
                return obj.GetComponent<PlayerCoreViewController>().controller;
            }
            return null;
        }
        protected virtual void Init()
        {
            controller = new PlayerCoreController();
        }
        private void Awake()
        {
            Init();
        }
    }
}